package dth.bean;

import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.faces.bean.ManagedBean;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

import com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param;

import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperCompileManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;
import net.sf.jasperreports.engine.data.JRBeanArrayDataSource;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.engine.design.JasperDesign;
import net.sf.jasperreports.engine.xml.JRXmlLoader;
import net.sf.jasperreports.view.JasperViewer;




import dth.dao.BookMovieDAO;
import dth.dao.OrderSetupBoxDAO;
import dth.entity.BookMovie;
import dth.entity.OrderSetupBox;
import dth.entity.SetupBox;
import dth.utils.DthUtil;


//jdbc:mysql://localhost:3306/dth_main
@ManagedBean(name = "reportBean")
public class ReportBean{
	public void generalReportPackageHistory() throws Exception
	{
		DthUtil.showReport("//report//packagehistory.jrxml");
	}
	
	public void generalReportBookMovie() throws Exception
	{
		DthUtil.showReport("//report//bookmovie.jrxml");
	}

	
}
